package tut.thread;

public class TestRunnableX {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		RunnableX r1 = new RunnableX("First runableX ");
		RunnableX r2 = new RunnableX("Second runableX ");
		RunnableX r3 = new RunnableX("Third runableX ");

		Thread t1 = new Thread(r1);
		Thread t2 = new Thread(r2);
		Thread t3 = new Thread(r3);

		t1.setName("T1");
		t2.setName("T2");
		//t3.setName("T3");

		t1.setPriority(10);

		System.out.println("ThreadId: " + t1.getId() + ", ThreadName: " + t1.getName() + ", ThreadPriority: " + t1.getPriority());
		System.out.println("ThreadId: " + t2.getId() + ", ThreadName: " + t2.getName() + ", ThreadPriority: " + t2.getPriority());
		System.out.println("ThreadId: " + t3.getId() + ", ThreadName: " + t3.getName() + ", ThreadPriority: " + t3.getPriority());

		t1.start();
		t2.start();
		t3.start();
	}

}
